package cn.antsing.provider.service;

import cn.antsing.api.ICalculate;
import com.alibaba.dubbo.config.annotation.Service;

/**
 * 计算服务实现者
 */
@Service(
        version = "${demo.service.version}",
        application = "${dubbo.application.id}",
        protocol = "${dubbo.protocol.id}",
        registry = "${dubbo.registry.id}"
)
public class CalculateImpl implements ICalculate {
    public int div(Integer a, Integer b) {
        int result = a / b;
        return result;
    }
}
